package com.chenyun.system.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.chenyun.boot.datasource.model.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author: lonni
 * @CreateTime: 2023-12-06  20:08
 * @Description:
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "sys_tenant_type",autoResultMap = true)
public class SysTenantType extends BaseEntity {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private String name;

    /**
     * 状态（0正常 1停用）
     */
    private Integer status=0;

    /**
     * 套餐所绑定的菜单id
     */
    @TableField(typeHandler = FastjsonTypeHandler.class)
    private List<String> menuIds;
}
